class OrderEntity {
  int id;
  int platform;
  int type;
  String numbering;
  int payer;
  int payee;
  int amount;
  int classifyId;
  int giftId;
  String giftName;
  int gold;
  String remark;
  int payChannel;
  int status;
  String paymentTime;
  String outTradeNo;
  String createdAt;
  String payAt;
  String typeName;
  String payeeName;
  String statusName;

  OrderEntity(
      {this.id,
        this.platform,
        this.type,
        this.numbering,
        this.payer,
        this.payee,
        this.amount,
        this.classifyId,
        this.giftId,
        this.giftName,
        this.gold,
        this.remark,
        this.payChannel,
        this.status,
        this.paymentTime,
        this.outTradeNo,
        this.createdAt,
        this.payAt,
        this.typeName,
        this.payeeName,
        this.statusName});

  OrderEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    platform = json['platform'];
    type = json['type'];
    numbering = json['numbering'];
    payer = json['payer'];
    payee = json['payee'];
    amount = json['amount'];
    classifyId = json['classify_id'];
    giftId = json['gift_id'];
    giftName = json['gift_name'];
    gold = json['gold'];
    remark = json['remark'];
    payChannel = json['pay_channel'];
    status = json['status'];
    paymentTime = json['payment_time'];
    outTradeNo = json['out_trade_no'];
    createdAt = json['created_at'];
    payAt = json['pay_at'];
    typeName = json['typeName'];
    payeeName = json['payeeName'];
    statusName = json['statusName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['platform'] = this.platform;
    data['type'] = this.type;
    data['numbering'] = this.numbering;
    data['payer'] = this.payer;
    data['payee'] = this.payee;
    data['amount'] = this.amount;
    data['classify_id'] = this.classifyId;
    data['gift_id'] = this.giftId;
    data['gift_name'] = this.giftName;
    data['gold'] = this.gold;
    data['remark'] = this.remark;
    data['pay_channel'] = this.payChannel;
    data['status'] = this.status;
    data['payment_time'] = this.paymentTime;
    data['out_trade_no'] = this.outTradeNo;
    data['created_at'] = this.createdAt;
    data['pay_at'] = this.payAt;
    data['typeName'] = this.typeName;
    data['payeeName'] = this.payeeName;
    data['statusName'] = this.statusName;
    return data;
  }
}